package org.example.demo.service.impl;

import org.example.demo.entity.ApplicationData;
import org.example.demo.mapper.ApplicationDataMapper;
import org.example.demo.result.PageResult;
import org.example.demo.service.ApplicationDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class ApplicationDataServiceImpl implements ApplicationDataService {


    @Autowired
    ApplicationDataMapper applicationDataMapper;

    /**
     * 更新申请书审核数据
     * @param applicationData
     */
    public void update(ApplicationData applicationData) {

        applicationDataMapper.update(applicationData);
    }

    /**
     * 插入申请书审核数据
     * @param applicationData
     */
    public void save(ApplicationData applicationData) {

        applicationDataMapper.insert(applicationData);
    }

    /**
     * 根据申请书id删除申请书审核数据
     * @param id
     */
    public void deleteByApplicationId(Integer id) {

        applicationDataMapper.deleteByApplicationId(id);
    }

    /**
     * 分页查询
     * @param applicationData
     * @param page
     * @param pageSize
     * @return
     */
//    public PageResult pageQuery(ApplicationData applicationData, Integer page, Integer pageSize) {
////        PageHelper
//    }


}
